package ooday02;

import com.sun.org.apache.xerces.internal.impl.xpath.XPath;

public class Student extends Person{
    String className;
    String studId;

    Student(String name,int age,String address,String className,String studId){
        super(name,age,address);
        this.className = className;
        this.studId = studId;
    }

    void study(){
        System.out.println(name+"正在上课");
    }
    void sayHi(){
        super.sayHi();
        System.out.println("我的班级名字是:"+className+",学号为:"+studId);
    }
}
